package com.rfid.emergencywarehouse.adapter;

import android.view.View;
import android.widget.CompoundButton;

import androidx.annotation.NonNull;

import com.rfid.emergencywarehouse.R;
import com.rfid.emergencywarehouse.entity.BarcodeInfo;

import java.util.List;

public class GAScanBarcodeAdapter extends ScanBarcodeAdapter{
    public GAScanBarcodeAdapter(List<BarcodeInfo> data) {
        super(data);
    }

    @Override
    protected int getLayout() {
        return R.layout.item_scan_barcode_get_asset;
    }

    @Override
    public void onBindViewHolder(@NonNull MyHolder holder, int position) {
        BarcodeInfo barcodeInfo = mData.get(position);
        holder.barcode.setText(barcodeInfo.getBarcode());
        holder.itemView.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        holder.select.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
                if (mListener != null) {
                }
            }
        });
    }
}
